home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 414_02 / portable / canchang.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-17  |  1.1 KB  |  54 lines

  1. #define    CURSES_LIBRARY    1
  2. #include <curses.h>
  3. #ifdef UNIX
  4. #include <defs.h>
  5. #include <term.h>
  6. #endif
  7. #undef can_change_color
  8.  
  9. #ifdef PDCDEBUG
  10. char *rcsid_canchang = "$Header: C:\CURSES\portable\RCS\canchang.c 2.1 1993/06/18 20:19:39 MH Rel MH $";
  11. #endif
  12.  
  13.  
  14.  
  15.  
  16. /*man-start*********************************************************************
  17.  
  18.   can_change_color()    - Indicate if terminal can change color definitions
  19.  
  20.   PDCurses Description:
  21.      This is defined as a macro.
  22.  
  23.      This routine indicates if the terminal has the capability to change
  24.      the definition of its colors. Although this is possible at least
  25.      with VGA monitors, this function always returns FALSE.
  26.  
  27.  
  28.   PDCurses Return Value:
  29.      This function returns FALSE.
  30.  
  31.   PDCurses Errors:
  32.      N/A
  33.  
  34.   Portability:
  35.      PDCurses    int can_change_color( void );
  36.  
  37. **man-end**********************************************************************/
  38.  
  39. int can_change_color(void)
  40. {
  41. #ifdef PDCDEBUG
  42.     if (trace_on) PDC_debug("can_change_color() - called\n");
  43. #endif
  44.  
  45. #ifdef UNIX
  46.     if (can_change)
  47.         return(TRUE);
  48.     else
  49.         return(FALSE);
  50. #else
  51.     return(FALSE);
  52. #endif
  53. }
  54.